//
//  WFWFTextViewCell.m
//  WisdomFarm
//
//  Created by sky on 2017/12/11.
//  Copyright © 2017年 sky. All rights reserved.
//

#import "WFWFTextViewCell.h"

@implementation WFWFTextViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setup];
    }
    return self;
}

- (void)setup {
    self.textView = [[UITextView alloc] init];
    [self.contentView addSubview:self.textView];
    self.textView.font = SCFont(14);
    self.textView.textColor = [UIColor textContentColor];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    [self.textView mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.edges.insets(self.insets);
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
